<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
[@seo type = "productContent"]
	<title>[#if product.seoTitle??]${product.seoTitle}[#elseif seo.title??][@seo.title?interpret /][/#if][#if systemShowPowered] - 766 SMART HOME[/#if]</title>
	<meta name="author" content="BIZ Team" />
	<meta name="copyright" content="BIZ" />
	[#if product.seoKeywords??] 
		<meta name="keywords" content="${product.seoKeywords}" />
	[#elseif seo.keywords??]
		<meta name="keywords" content="[@seo.keywords?interpret /]" />
	[/#if]
	[#if product.seoDescription??]
		<meta name="description" content="${product.seoDescription}" />
	[#elseif seo.description??]
		<meta name="description" content="[@seo.description?interpret /]" />
	[/#if]
[/@seo]
	<link href="${base}/resources/terminal/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	[#include "/terminal/include/search.ftl" /]
	<div class="content container clearfix">
		<div class="left">
			<nav class="head_nav classification product_nav clearfix">
				<label>产品详情：</label>
				<ul>
					<li><a href="#">${product.productCategory.name}</a></li>
					<li>&gt;</li>
					<li>${product.name}</li>
				</ul>
			</nav>
			<div class="con_top clearfix">
				<div class="float_f left">
					<div class="productImage">
						[#if product.productImages?has_content]
							<a id="zoom" href="${product.productImages[0].large}" rel="gallery">
								<span></span>
								<img class="medium" src="${product.productImages[0].medium}" />
							</a>
						[#else]
							<a id="zoom" href="${setting.defaultLargeProductImage}" rel="gallery">
								<img class="medium" src="${setting.defaultMediumProductImage}" />
							</a>
						[/#if]
						<a href="javascript:;" class="prev"></a>
						<div id="scrollable" class="scrollable">
							<div class="items">
								[#if product.productImages?has_content]
									[#list product.productImages as productImage]
										<a[#if productImage_index == 0] class="current"[/#if] href="javascript:;" rel="{gallery: 'gallery', smallimage: '${productImage.medium}', largeimage: '${productImage.large}'}">
											<img src="${productImage.thumbnail}" alt="${productImage.title}" title="${productImage.title}" />
										</a>
									[/#list]
								[#else]
									<a class="current" href="javascript:;"><img src="${setting.defaultThumbnailProductImage}" /></a>
								[/#if]
							</div>
						</div>
						<a href="javascript:;" class="next"></a>
					</div>
				</div>
				<div class="details_con_right float_r">
					<h2>${product.name}<input type="hidden" value="${product.id}" id="productId"/></h2>
					<p class="main_color introduction"></p>	
					<ul class="product_information">
						<li>
							<label>产品编号：</label>
							<span>${product.sn}</span>
						</li>
						<li>
							<label>销&nbsp;售&nbsp;价：</label>
							<span><label class="red font-bold price">￥${product.price?string("0.00")}</label><span>元</span></span>
						</li>
						<li>
							<label>市&nbsp;场&nbsp;价：</label>
							<span class="original_price">￥${product.marketPrice?string("0.00")}</span>
						</li>
						<li>
							<label>已&nbsp;销&nbsp;售：</label>
							<span><label class="main_color">20</label>件</span>
						</li>
						<li>
							<label>赠送积分：</label>
							<span class="main_color"></span>
						</li>
					</ul>
				</div>
			</div>
			<ul class="details_con_head clearfix">
				<li><a href="#productIntroduce" class="selected_option">商品介绍</a></li>
				<!-- <li><a href="#productShow">商品展示</a></li> -->
				<li><a href="#productParameter">商品参数</a></li>
			</ul>
			<div class="introduct_con details_con_list" id="productIntroduce">
				${product.introduction}
			</div>
			<!-- <div id="productShow" class="product_introduce details_con_list">
				<h3>商品展示</h3>
				<div class="show_con">
					[#if product.productImages??]
						[#list product.productImages as images]
							<img src="${images.large}" alt="${product.name}"/>
						[/#list]
					[/#if]
				</div>
			</div> -->
			<div id="productParameter" class="product_parameter details_con_list">
				<h3>商品参数</h3>
				<div class="parameter_con bespoke_table">
					<table>
						[#list product.productCategory.parameterGroups as parameterGroup]
							<tr>
								<td style="text-align: right; padding-right: 10px;">
									<strong>${parameterGroup.name}</strong>
								</td>
								<td>
									&nbsp;
								</td>
							</tr>
							[#list parameterGroup.parameters as parameter]
								<tr>
									<td>${parameter.name}:</td>
									<td>
										${product.parameterValue.get(parameter)}
									</td>
								</tr>
							[/#list]
						[/#list]
					</table>
				</div>
			</div>
		</div>
		[#include "/pad/include/aside.ftl" /]
	</div>
	[#include "/pad/include/footer.ftl" /]
	<script type="text/javascript" src="${base}/resources/public/js/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="${base}/resources/mobile/js/common.js"></script>
	<script type="text/javascript">
		var base ="${base}";
	</script>
	<script type="text/javascript" src="${base}/resources/shop/js/jquery.tools.js"></script>
	<script type="text/javascript" src="${base}/resources/shop/js/jquery.jqzoom.js"></script>
	<script type="text/javascript" src="${base}/resources/terminal/js/public.js"></script>
	<script type="text/javascript">
		$(function(){
				var $scrollable = $("#scrollable");
				var $thumbnail = $("#scrollable a");
				var $zoom = $("#zoom");
				// 商品缩略图滚动
				$scrollable.scrollable();
				$thumbnail.click(function() {
					var $this = $(this);
					if ($this.hasClass("current")) {
						return false;
					} else {
						$thumbnail.removeClass("current");
						$this.addClass("current").click();
					}
				});
				
				
				//切换图片	
				$('#scrollable .items>a').live('click',function(){
					var src = $(this).children().attr('src');
					$('#zoom .medium').attr('src',src);
				});
				
				
				
		});
	</script>
</body>
</html>